{$header} 
{$menu}
{literal}
<script language="javascript">
	function ToggleAllUsers(form, isChecked){
			for(i=0; i < form.length; i++) {
				if(form.elements[i].type == "checkbox"){
					if(isChecked){	form.elements[i].checked = true;}
					else { form.elements[i].checked = false;}					
				}
			}
		}
</script>
{/literal}
 <div id="content">
    <div id="tab" class="radius-top">
    	<span>Listing ({$total})</span>Massage List
   <div class="clear"></div></div>
     {$form_open}   
     <div id="bnt-under">
     	<ul id="icon">
        	<li class="icon-delete left27"><input class="mws-button green" type="submit" value="Delete" onclick="return confirm('Are you sure delete');" /></li>
            <li class="icon-add left27"><input class="mws-button green" type="button" value="Add" onclick="window.location='{$url}manage_message/message_add';"></li>
        </ul>
     </div>
     {$status}
    <table>
      <thead>
        <tr>
          <th><input type="checkbox" onclick="ToggleAllUsers(this.form, this.checked)" /></th>
          <th><span class="radius-top">Massage</span></th>
          <th>Edit</th>
          <th>Delete</th>
        </tr>
      </thead>
      <tbody>
      {if $Num_Rows != 0}
      	{section name=index loop=$cat}
        <tr>
          <td><input type="checkbox" name="check[]" value="{$cat[index].pkid}" /></td>
          <td class="hotelInfo">{$cat[index].content}</td>
          <td><a href="{$url}manage_message/message_edit/{$cat[index].pkid}"><img src="{$url}images/edit-icon.png" width="20" height="20" /></a></td>
          <td><a href="{$url}manage_message/message_del/{$cat[index].pkid}" onclick="return confirm('Are you sure delete category');"><img src="{$url}images/delete-icon.png" width="20" height="20" /></a></td>
        </tr>
        {/section}
         <tr>
        	<td colspan="4">{$pagelink}</td>
        </tr>
      { else }
     	<tr>
          <td colspan="4" align="center">Empty</td>   
        </tr>
      { /if } 
      </tbody>
    </table>
    {$form_close}
  </div>
{$footer}